package com.dongfa.learn_0913;

public class SwtichLearn {
    public static void main(String[] args) {
        int num = 1;
        switch (num){
            /*case 0 -> System.out.println("是0");
            case 1 -> System.out.println("是1");
            case 2 -> System.out.println("是2");*/
            case 0: System.out.println("是0");
            case 1:  {System.out.println("是1"); break;}
            case 2:  System.out.println("是2");
        }
    }
}
